package net.seabookchen.service;

import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

public class UserIdentificationService {
	private static UserService userService = UserServiceFactory.getUserService();
	
	public static boolean isAdminLoggedIn() {	
		if (!isUserLoggedIn()) {
			return false;
		}
		
		return userService.isUserAdmin();
		
	}
	
	public static boolean isUserLoggedIn() {
		return userService.isUserLoggedIn();
	}
}
